﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ATM_Client
{
    public partial class MainForm : Form
    {
        public static string token = "";
        public MainForm()
        {
            InitializeComponent();
        }

        private void Button1Click(object sender, EventArgs e)
        {
            ViewBalance.token = token;
            var form = new ViewBalance();
            form.Show();
            Dispose();
        }

        private void Button2Click(object sender, EventArgs e)
        {
            Withdraw.token = token;
            var form = new Withdraw();
            form.Show();
            Dispose();
        }

        private void Button3Click(object sender, EventArgs e)
        {
            Deposit.token = token;
            var form = new Deposit();
            form.Show();
            Dispose();
        }

        private void Button4Click(object sender, EventArgs e)
        {
            Transfer.token = token;
            var form = new Transfer();
            form.Show();
            Dispose();
        }

        private void Button5Click(object sender, EventArgs e)
        {
            var form = new Login();
            form.Show();
            Dispose();
        }

        private void MainFormLoad(object sender, EventArgs e)
        {
        }
    }
}
